#!/bin/bash
read -p "输入你的docker容器的名字(英文a-z/A-Z和数字0-9)：" dockername
docker build --tag aliddns6:alpine .
docker create $dockername
docker cp main.py $dockername:main.py
docker run $dockername --restart=always -itd --no-cache --net=host aliddns6:alpine --name="aliddns6" python3 main.py && bash